package com.lvkerry.generate.bean;

/**
 * @author Kerry on 18/03/07
 */

public class UserDeskBean {

    private Long userId;
    private Integer tableNo;

    public UserDeskBean(Long userId, Integer tableNo) {
        this.userId = userId;
        this.tableNo = tableNo;
    }

    public UserDeskBean() {

    }

    public Long getUserId() {

        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getTableNo() {
        return tableNo;
    }

    public void setTableNo(Integer tableNo) {
        this.tableNo = tableNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserDeskBean that = (UserDeskBean) o;

        if (userId != null ? !userId.equals(that.userId) : that.userId != null) return false;
        return tableNo != null ? tableNo.equals(that.tableNo) : that.tableNo == null;
    }

    @Override
    public int hashCode() {
        int result = userId != null ? userId.hashCode() : 0;
        result = 31 * result + (tableNo != null ? tableNo.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "UserDeskBean{" +
                "userId=" + userId +
                ", tableNo=" + tableNo +
                '}';
    }
}
